﻿namespace MyLibrary.API.Data
{
    using System;
    using System.Text;
    using System.Data.Common;
    using System.Data.OleDb;

    public abstract class DbDatabase : IDatabase
    {
        protected string connectionString;

        public DbDatabase(string connectionString)
        {
            this.connectionString = connectionString;
        }

        public abstract DbDataReader ExecuteReader(string queary);
        public abstract DbDataReader ExecuteReader(string query, params MyLibrary.API.Core.Param<object>[] Parameters);
        public abstract int ExecuteNonQuery(string query);
        public abstract int ExecuteNonQuery(string query, params MyLibrary.API.Core.Param<object>[] Parameters);
        public abstract object ExecuteScalar(string query);
        public abstract object ExecuteScalar(string query, params MyLibrary.API.Core.Param<object>[] Parameters);
    }
}
